package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import cqrtplm.constant.RTTableTypeConstant;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;

@Data
@Entity
@Table(name = "RT_COD_DRAWING")
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_CODE_SEQUENCE_DRAWING
)
public class CodeDrawingDO extends CTyEntityBaseDO {
    /**
     * 分类码 / 图样代号
     */
    @TableField(value = "classification_id")
    private String classificationId;
    /**
     * 是否为组合键 / -
     */
    @TableField(value = "remark")
    private String remark;
    /**
     * 开发令 / 颜色码
     */
    @TableField(value = "development_order")
    private String developmentOrder;

    @Id
    private BigInteger oid;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_CODE_SEQUENCE_DRAWING
    )
    private String otype = RTTableTypeConstant.TYPE_CODE_SEQUENCE_DRAWING;

    @TableField(value = "flow_code")
    private String flowCode;

    public CodeDrawingDO(String classificationId, String remark, String developmentOrder) {
        this.classificationId = classificationId;
        this.remark = remark;
        this.developmentOrder = developmentOrder;
    }

    public CodeDrawingDO() {

    }
}
